<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="org.apache.commons.lang3.RandomStringUtils"%>
<%
String id = RandomStringUtils.randomAlphanumeric(32);
 %>
<html>
<head>
    <title>用户信息</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/user/addUser.do" method="post">
<br>
  <table>
      <tr>       
        <td>
        <input name="id" type="hidden" value="<%=id%>">
          姓名: <input name="name">                 
         </td>
      </tr>
      <tr>       
        <td>
          年龄: <input name="age">      
        </td>
      </tr>
      <tr>        
        <td>
          性别: <select name="sex">
          	<option value="1">男</option>
          	<option value="2">女</option>
          </select>
        </td>
      </tr>
      <tr>        
        <td>
           密码: <input name="password">      
        </td> 
      </tr>
      <tr>       
        <td>
          地址:<input name="address"/>
        </td>
      </tr>
      <tr>
        <td align="right">
         <input type="submit" vlaue="保存"/>
        </td>
      </tr>
    </table>
</form>
<br>
<a href="${pageContext.request.contextPath}/index.jsp">返回主页</a><br>
<a href="${pageContext.request.contextPath}/user/userList.do">返回显示</a>
</body>
</html>
